package game.logic;

import game.screen.AbsScreen;
import game.screen.ScreenMenu;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;

public class GameControl extends Game {

	AbsScreen screen;
	//Input input = new Input();
	@Override
	public void create() {	
		//Gdx.input.setInputProcessor(input);
		screen = new ScreenMenu(this);
		setScreen(screen);
	}
	

	@Override
	public void render() 
	{
		screen = (AbsScreen) this.getScreen();
		screen.update();
		
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		screen.render(1);
	}
	
	@Override
	public void resize(int width, int height) {
		super.resize(width, height);
	}
	
	@Override
	public void resume() {
		super.resume();
	}
	
	
}
